package com.sstir.doctor.mapper;

import com.sstir.doctor.entity.UserInfoEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hanjunjun
 * @since 2021-01-15
 */
public interface UserInfoMapper extends BaseMapper<UserInfoEntity> {

    /**
     * 分数降序查询   limit count
     *
     * @param count
     * @return java.util.List<com.sstir.doctor.entity.UserInfoEntity>
     * @author  hjj
     * @date 2021/1/15
     **/
    List<UserInfoEntity> getRankingList(Integer count);

    /**
     * 插入一条用户数据并返回自动生成的id
     *
     * @param userInfoEntity
     * @return int
     * @author  hjj
     * @date 2021/1/15
     **/
    int insertUserSelectiveCallId(UserInfoEntity userInfoEntity);

}
